﻿using System.Text.RegularExpressions;

namespace ConvertCsharpCode
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string directoryPath = "";
            if (args.Length > 0)
            {
                directoryPath = args[0];
                // Console.WriteLine("Usage: NamespaceConverter <directory-path>");
                // return;
            }
            else
            {
                directoryPath = "C:\\Zoo\\Code\\work\\ImageStation\\ImageStation-master\\";
            }

            if (!Directory.Exists(directoryPath))
            {
                Console.WriteLine("Directory does not exist.");
                return;
            }

            /*
             * 此操作会破换源码，请未必使用复制出来的，独立的代码文件夹进行处理。
             */

            new CodeConverter().ConvertCodeInDirectory(directoryPath);
        }
    }
}
